package cn.francis.common.utils;

import lombok.AccessLevel;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.StringUtils;

/**
 * @author 张俊辉
 */

@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class CommonUtils {
    public static final String PATTERN = "[\r\n]";
    /**
     * 处理CRLF
     */
    public static String processCrlf(String value) {
        if (StringUtils.isBlank(value)) {
            return value;
        }
        return StringUtils.replace(value, PATTERN, "");
    }
}
